<?php
namespace Application\Model;

class User 
{

    public $username;

    public $email;

    public $password;

    public $userpower;

    public $status;

    public function exchangeArray ($data)
    {
        $this->username = (! empty($data['username'])) ? $data['username'] : null;
        $this->email = (! empty($data['email'])) ? $data['email'] : null;
        $this->password = (! empty($data['password'])) ? $data['password'] : null;
        $this->userpower = (! empty($data['userpower'])) ? $data['userpower'] : null;
        $this->status = (! empty($data['status'])) ? $data['status'] : null;
    }
}